
public class Stone {

	int row;		// The X-Coordinate
	int column;		// The Y-Coordinate
	int color;		// Determine the stone's color/player
	static int firstPlayerStones = 9;
	static int secondPlayerStones = 9;

	// Stone's constructor
	public Stone(int x, int y, int color)
	{
		row = x;
		column = y;
		this.color = color;
		if(color == 0)
		{
			firstPlayerStones--;
		}
		else
		{
			if(color == 1)
			{
				secondPlayerStones--;
			}
		}
	}

	// Remaining stones getter method
	public int getRemaining()
	{
		if(this.color == 0)
			return firstPlayerStones;
		else
			return secondPlayerStones;
	}

	// Method for setting the stone's position
	void setPosition(int x, int y)
	{
		row = x;
		column = y;
	}

	// Getter method for the stone's row
	int getRow()
	{
		return row;
	}

	// Getter method for the stone's column
	int getColumn()
	{
		return column;
	}

	// Getter method for the stone's color
	int getColor()
	{
		return this.color;
	}
}
